|
|
This is an attempt to use MegaPOV's proximity pattern in conjuction
with media. It leads to very interesting results, tough it's
slooooow (well, text object + sampled pattern + sampled media =
expected slugginess). I might try with other objects...
Dirty code and image follows.
---
#version unofficial MegaPov 0.5;
#include "colors.inc"
camera {location <50,50,100> direction z*2 look_at <0,0,0>}
#declare Obj1=//box {<0,0,-5>,<15,15,5> pigment {Red}}
text {ttf "trebuc.ttf","Neon",.1,0 pigment {OrangeRed*2}
scale 17 rotate y*-180 translate x*10}
object {Obj1}
#declare Sp1=
sphere {0,50 hollow
pigment {White transmit 1}
interior {
media {
method 2
intervals 8
samples 2,8
//confidence
//variance
//ratio
//absorption rgb <,,>
emission rgb 0.02
//scattering { Type, COLOR [ eccentricity Value ] [
extinction Value ] }
density {
proximity {
Obj1, 10
type 1 method 0
sides 1
sample_weighting <0, 0, 0>
samples 10
max_density 1
sample_bailout 30
type 1 //0 : dist moyenne, 1 plus petite
distance,
//2 somme des longeurs de tous les
vecteurs du point aux samples,
//3 : type 0 avec un falloff
method 0 //0 : random dans bbox, 1 : random, 2
randbb si hors de la bb, sinon rand.
sides 1 //0 faces internes, 1 faces externes, 2
les deux.
}//fin prox
color_map {[0 White+Orange][1 Black]}
//scale 40
}
}//fin media
}//fin interior
}
object {Sp1}
light_source {<400,500,300> White*2}
Post a reply to this message
Attachments:
Download 'proximedia.jpg' (7 KB)
Preview of image 'proximedia.jpg'
|
|